<?php

class Application_Model_Turncachepunkte
{
	protected $_id;
	protected $_turn;
	protected $_position;
	protected $_lat;
	protected $_lng;
	protected $_referenzid;
	protected $_referenzobjekt;
	protected $_name;
	protected $_status;

	public function __construct (array $options = null)
	{
		if (is_array($options))
		{
			$this->setOptions($options);
		}
	}
	public function setOptions (array $options)
	{
		$methods = get_class_methods($this);
		foreach ($options as $key => $value)
		{
			$method = 'set' . ucfirst($key);
			if (in_array($method, $methods))
			{
				$this->$method($value);
			}
		}
		return $this;
	}

	public function __set ($name, $value)
	{
		$method = 'set' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid auth property');
		}
		$this->$method($value);
	}
	public function getId() {
		return $this->_id;
	}

	public function getTurn() {
		return $this->_turn;
	}

	public function getPosition() {
		return $this->_position;
	}

	public function getLat() {
		return $this->_lat;
	}

	public function getLng() {
		return $this->_lng;
	}

	public function setId($_id) {
		$this->_id = $_id;
	}

	public function setTurn($_turn) {
		$this->_turn = $_turn;
	}

	public function setPosition($_position) {
		$this->_position = $_position;
	}

	public function setLat($_lat) {
		$this->_lat = $_lat;
	}

	public function setLng($_lng) {
		$this->_lng = $_lng;
	}
	public function getReferenzid() {
		return $this->_referenzid;
	}

	public function getReferenzobjekt() {
		return $this->_referenzobjekt;
	}

	public function setReferenzid($_referenzid) {
		$this->_referenzid = $_referenzid;
	}

	public function setReferenzobjekt($_referenzobjekt) {
		$this->_referenzobjekt = $_referenzobjekt;
	}
	public function getName() {
		return $this->_name;
	}

	public function setName($_name) {
		$this->_name = $_name;
	}
	public function getStatus() {
		return $this->_status;
	}

	public function setStatus($_status) {
		$this->_status = $_status;
	}




	
}

